<?php echo $cat_header;?>
<div id="left_side">
	<div class="behindScence">
		<div class="header">
			<h2>คลิปเด็ด</h2>
			<div class="viewAll">
				<a href="<?php echo $video_url.'behind_scence/new_released';?>">ดูทั้งหมด</a>
			</div>
		</div>
		<div class="body">
		<?php $i=0;?>
		<?php if(!empty($videoBehind)):?>
			<?php foreach($videoBehind as $value):?>
			<div class="videoItem <?php $i++; echo ($i%4 == 0)? 'last' : ''; ?>">
			<a class="_player" href="<? echo $video_url.'play/'.$value->video_id.'-'.seo_url($value->video_name);?>" target="_blank">
				<div class="thumb">
					<?php echo exec_image(array(
						'folder' => 'video',
						'dimension' => '157x102',
						'file_name' => @$value->video_thumb_name.'.'.@$value->video_thumb_ext,
						'alt' => ''.@$value->video_name.'',	
						'title' => ''.@$value->video_name.''	
						)
					);?>
				</div>
				</a>
				<div class="title">
				<a class="_player" href="<? echo $video_url.'play/'.$value->video_id.'-'.seo_url($value->video_name);?>" target="_blank"><?php echo $value->video_name;?></a>
				</div>
				<div class="artist">
				<?php if(!empty($value->artist)) foreach($value->artist as $key => $artist):?>
					<?php echo ($key==0 ? '':'/');?>
					<a href="<?php echo $artist_url.'summary/'.$artist->artist_id.'-'.seo_url($artist->artist_name);?>" target="_blank"><?php echo $artist->artist_name;?></a>
				<?php endforeach;?>
				</div>
				<div class="view">
				ดู <?php echo $value->views;?> ครั้ง
				</div>
			</div>
			<?php endforeach;?>
		<?php endif;?>
		<div class="clearfix"></div>
		</div>
	</div>
	<div class="mv">
		<div class="header">
			<h2>มิวสิควีดีโอใหม่</h2>
			<div class="viewAll">
				<a href="<?php echo $video_url.'mv/new_released';?>">ดูทั้งหมด</a>
			</div>
		</div>
		<div class="body">
		<?php $i=0;?>
		<?php if(!empty($videomv)):?>
			<?php foreach($videomv as $value):?>
			<div class="videoItem <?php $i++; echo ($i%4 == 0)? 'last' : ''; ?>">
			<a class="_player" href="<? echo $video_url.'play/'.$value->video_id.'-'.seo_url($value->video_name);?>" target="_blank">
				<div class="thumb">
					<?php echo exec_image(array(
						'folder' => 'video',
						'dimension' => '157x102',
						'file_name' => @$value->video_thumb_name.'.'.@$value->video_thumb_ext,
						'alt' => ''.@$value->video_name.'',	
						'title' => ''.@$value->video_name.''	
						)
					);?>
				</div>
				</a>
				<div class="title">
				<a title="add to playlist" class="_playlist" target="_blank" href="<?php echo $playlist_url.'video/'.$value->video_id.'-'.seo_url($value->video_name);?>"></a>
				<a class="_player" href="<?php echo $video_url.'play/'.$value->video_id.'-'.seo_url($value->video_name);?>" target="_blank"><?php echo $value->video_name;?></a>
				</div>
				<div class="artist">
				<?php if(!empty($value->artist)) foreach($value->artist as $key => $artist):?>
					<?php echo ($key==0 ? '':'/');?>
					<a href="<?php echo $artist_url.'summary/'.$artist->artist_id.'-'.seo_url($artist->artist_name);?>" target="_blank"><?php echo $artist->artist_name;?></a>
				<?php endforeach;?>
				</div>
				<div class="view">
				ดู <?php echo $value->views;?> ครั้ง
				</div>
			</div>
			<?php endforeach;?>
		<?php endif;?>
		<div class="clearfix"></div>
		</div>
	</div>
	<div class="concert">
		<div class="header clearfix">
			<h2>คลิปการแสดงสด</h2>
			<div class="viewAll">
				<a href="<?php echo $video_url.'concert/new_released';?>">ดูทั้งหมด</a>
			</div>
		</div>
		<div class="body">
		<?php $i=0;?>
		<?php if(!empty($videoConcert)):?>
			<?php foreach($videoConcert as $value):?>
			<div class="videoItem <?php $i++; echo ($i%4 == 0)? 'last' : ''; ?>">
			<a class="_player" href="<? echo $video_url.'play/'.$value->video_id.'-'.seo_url($value->video_name);?>" target="_blank">
				<div class="thumb">
					<?php echo exec_image(array(
						'folder' => 'video',
						'dimension' => '157x102',
						'file_name' => @$value->video_thumb_name.'.'.@$value->video_thumb_ext,
						'alt' => ''.@$value->video_name.'',	
						'title' => ''.@$value->video_name.''	
						)
					);?>
				</div>
				</a>
				<div class="title">
				<a class="_player" href="<? echo $video_url.'play/'.$value->video_id.'-'.seo_url($value->video_name);?>" target="_blank"><?php echo $value->video_name;?></a>
				</div>
				<div class="artist">
				<?php if(!empty($value->artist)) foreach($value->artist as $key => $artist):?>
					<?php echo ($key==0 ? '':'/');?>
					<a href="<?php echo $artist_url.'summary/'.$artist->artist_id.'-'.seo_url($artist->artist_name);?>" target="_blank"><?php echo $artist->artist_name;?></a>
				<?php endforeach;?>
				</div>
				<div class="view">
				ดู <?php echo $value->views;?> ครั้ง
				</div>
			</div>
			<?php endforeach;?>
		<?php endif;?>
		<div class="clearfix"></div>
		</div>
	</div>
	<div class="interView">
		<div class="header">
			<h2>คลิปสัมภาษณ์</h2>
			<div class="viewAll">
				<a href="<?php echo $video_url.'interview/new_released';?>">ดูทั้งหมด</a>
			</div>
		</div>
		<div class="body">
		<?php $i=0;?>
		<?php if(!empty($videoView)):?>
			<?php foreach($videoView as $value):?>
			<div class="videoItem <?php $i++; echo ($i%4 == 0)? 'last' : ''; ?>">
			<a class="_player" href="<? echo $video_url.'play/'.$value->video_id.'-'.seo_url($value->video_name);?>" target="_blank">
				<div class="thumb">
					<?php echo exec_image(array(
						'folder' => 'video',
						'dimension' => '157x102',
						'file_name' => @$value->video_thumb_name.'.'.@$value->video_thumb_ext,
						'alt' => ''.@$value->video_name.'',	
						'title' => ''.@$value->video_name.''	
						)
					);?>
				</div>
				</a>
				<div class="title">
				<a class="_player" href="<? echo $video_url.'play/'.$value->video_id.'-'.seo_url($value->video_name);?>" target="_blank"><?php echo $value->video_name;?></a>
				</div>
				<div class="artist">
				<?php if(!empty($value->artist)) foreach($value->artist as $key => $artist):?>
					<?php echo ($key==0 ? '':'/');?>
					<a href="<?php echo $artist_url.'summary/'.$artist->artist_id.'-'.seo_url($artist->artist_name);?>" target="_blank"><?php echo $artist->artist_name;?></a>
				<?php endforeach;?>
				</div>
				<div class="view">
				ดู <?php echo $value->views;?> ครั้ง
				</div>
			</div>
			<?php endforeach;?>
		<?php endif;?>
		<div class="clearfix"></div>
		</div>
	</div>
	<div class="y2pTV">
		<div class="header">
			<h2>รายการ You2PlayTV</h2>
			<div class="viewAll">
				<a href="<?php echo $video_url.'you2playtv';?>">ดูทั้งหมด</a>
			</div>
		</div>
		<div class="body">
		<?php $i=0;?>
		<?php if(!empty($videotv)):?>
			<?php foreach($videotv as $value):?>
			<div class="videoItem <?php $i++; echo ($i%4 == 0)? 'last' : ''; ?>">
			<a class="_player" href="<? echo $video_url.'play/'.$value->video_id.'-'.seo_url($value->video_name);?>" target="_blank">
				<div class="thumb">
					<?php echo exec_image(array(
						'folder' => 'video',
						'dimension' => '157x102',
						'file_name' => @$value->video_thumb_name.'.'.@$value->video_thumb_ext,
						'alt' => ''.@$value->video_name.'',	
						'title' => ''.@$value->video_name.''	
						)
					);?>
				</div>
				</a>
				<div class="title">
				<a class="_player" href="<? echo $video_url.'play/'.$value->video_id.'-'.seo_url($value->video_name);?>" target="_blank"><?php echo $value->video_name;?></a>
				</div>
				<div class="artist">
				<?php if(!empty($value->artist)) foreach($value->artist as $key => $artist):?>
					<?php echo ($key==0 ? '':'/');?>
					<a href="<?php echo $artist_url.'summary/'.$artist->artist_id.'-'.seo_url($artist->artist_name);?>" target="_blank"><?php echo $artist->artist_name;?></a>
				<?php endforeach;?>
				</div>
				<div class="view">
				ดู <?php echo $value->views;?> ครั้ง
				</div>
			</div>
			<?php endforeach;?>
		<?php endif;?>
		<div class="clearfix"></div>
		</div>
	</div>
</div>
<div id="right_side">
	<!--Module-->
	<?php
	if(!empty($module))
	foreach($module as $value):?>
	<?php echo $value;?>
	<?php endforeach;?>
</div>
<div class="clear">
</div>